package com.dtx.practice.one;

public class Test1 {
    private static int i = 1;
    public int getNext(){
        return i++;
    }

    public static void main(String[] args) {
        Test1 test = new  Test1();
        Test1 testObject = new Test1();
        test.getNext();
        testObject.getNext();
        System.out.println(testObject.getNext());

    }
}
